<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<table width="100%">
	<tr>
		<td height="40" colspan="2" class="sectionheading bottom-border blue-text16"
			align="left">
			Invoices Report
		</td>
	</tr>
	<tr>
		<td class="verdana12blacknormal search-text">
			<a href="#">Invoices History</a> &gt;<a href="#"><s:date format="dd MMMM, yyyy" name="auctionInvoices.date" /></a> &gt; <s:property value="auctionInvoices.invoice" />
		</td>
	</tr>
	<tr>
		<td>
			<table width="100%" border="0" align="center">
				<tr>
					<td colspan="2" class="verdana12blacknormal search-text">
						<b>Invoice Number:<s:property value="auctionInvoices.invoice" /></b>
					</td>
					<td class="verdana12blacknormal search-text">
						<b>Invoice Date:<s:date format="dd MMMM, yyyy" name="auctionInvoices.date" /></b>
					</td>
				</tr>
				<tr>
					<td colspan="2" class="verdana12blacknormal search-text">
						<b>Account Name:<s:property value="user.userId" /></b>
					</td>
					<td class="verdana12blacknormal search-text">
						<b>Activity from:<s:date format="dd MMMM, yyyy" name="auctionInvoices.start" /> to <s:date format="dd MMMM, yyyy" name="auctionInvoices.ends" /></b>
					</td>
				</tr>

				<tr>
					<td></td>
					<td class="verdana12blacknormal search-text">
						<b>Invoice by</b>
					</td>
					<td class="verdana12blacknormal common-text">
						<b>Invoice to</b>
					</td>
				</tr>
				<tr>
					<td class="verdana12blacknormal search-text">
						Name:
					</td>
					<td class="verdana12blacknormal common-text">
						<s:property value="adminDetails.name" />
					</td>
					<td class="verdana12blacknormal common-text">
						<s:property value="user.firstName" />&nbsp;<s:property value="user.lastName" />
					</td>
				</tr>
				<tr>
					<td class="verdana12blacknormal search-text">
						Address:
					</td>
					<td class="verdana12blacknormal common-text">
						<s:property value="adminDetails.address" />
					</td>
					<td class="verdana12blacknormal common-text">
						<s:property value="user.street" />
					</td>
				</tr>
				<tr>

					<td class="verdana12blacknormal search-text">
						City:
					</td>
					<td class="verdana12blacknormal common-text">
						<s:property value="adminDetails.city" />
					</td>
					<td class="verdana12blacknormal common-text">
						<s:property value="user.city" />
					</td>
				</tr>
				<tr>
					<td class="verdana12blacknormal search-text">
						State:
					</td>
					<td class="verdana12blacknormal common-text">
						<s:property value="adminDetails.state" />
					</td>
					<td class="verdana12blacknormal common-text">
						<s:property value="user.state.categoryName" />
					</td>
				</tr>
				<tr>
					<td class="verdana12blacknormal search-text">
						Country:
					</td>
					<td class="verdana12blacknormal common-text">
						<s:property value="adminDetails.country" />
					</td>
					<td class="verdana12blacknormal common-text">
						<s:property value="user.country.categoryName" />
					</td>
				</tr>

				<tr>
					<td class="verdana12blacknormal search-text">
						VAT-ID Nr.:
					</td>
					<td class="verdana12blacknormal common-text">
						<s:property value="adminDetails.vatIdNr" />
					</td>
					<td class="verdana12blacknormal common-text">
						<s:property value="user.vatidnr1" /><s:property value="user.vatidnr2" />
					</td>
				</tr>
				<tr>
					<td class="verdana12blacknormal search-text">
						Payment Method :
					</td>
					<td></td>
				</tr>
			</table>

		</td>
	</tr>
</table>
<display:table name="transactionList" style="width: 100%;" cellpadding="0" cellspacing="0" id="row" class="verdana12blacknormal" decorator="org.displaytag.decorator.TotalTableDecorator">
	<display:column title="#" headerClass="Table-Head grid-header-bg grid-header-text" style="text-align: center" class="grid-bg common-text">
		<c:out value="${row_rowNum}" />
	</display:column>
	<display:column headerClass="Table-Head grid-header-bg grid-header-text" style="text-align: center" property="transactionId" title="Transaction ID" class="navi-link grid-bg common-text" />
	<display:column headerClass="Table-Head grid-header-bg grid-header-text" style="text-align: center" property="id.itemId" title="Item" class="navi-link grid-bg common-text" />
	<display:column headerClass="Table-Head grid-header-bg grid-header-text" style="text-align: center" title="Date" autolink="true" class="grid-bg common-text">
		<s:date name="#attr.row.date" format="dd MMMM, yyyy" />
	</display:column>
	<display:column headerClass="Table-Head grid-header-bg grid-header-text" style="text-align: right" property="type" title="Type" class="navi-link grid-bg common-text" />
	<display:column headerClass="Table-Head grid-header-bg grid-header-text" style="text-align: right" property="amount" title="Amount" class="navi-link grid-bg common-text" format="{0,number,0.00} $" total="true" />
	<display:column headerClass="Table-Head grid-header-bg grid-header-text" style="text-align: center" title="VAT" value="10" class=" grid-bg common-text"/>
	<display:column headerClass="Table-Head grid-header-bg grid-header-text" style="text-align: center" title="Total" value="10" class=" grid-bg common-text"/>
</display:table>

<table>
	<tbody>
		<tr>
			<td>
				<br>
				<a href="#" target="_blank">Print</a>
			</td>
		</tr>
	</tbody>
</table>